﻿using Company.Share.Prism;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Main.ViewModels
{
    public class AcsComponetViewModel : BindableBase
    {
        public IRegionManager RegionManager { get; }
        public DelegateCommand BackToPreviousViewCommand { get;}
        public AcsComponetViewModel(IRegionManager regionManager)
        {
            BackToPreviousViewCommand = new DelegateCommand(BackToPreviousView);
            RegionManager = regionManager;
        }

        private void BackToPreviousView()
        {
            RegionManager.RequestNavigate(RegionNames.NavigationRegion, ViewNames.SystemSettingView);
        }
    }
}
